package be.gil.jacky.entity
{
	import mx.collections.ArrayCollection;

	[Bindable]
	public class Speler
	{
		public var naam:String;
		public var voornaam:String;
		public var nummer:uint;
		public var foto:Class;
		
		public var posities:ArrayCollection = new ArrayCollection();
		
		
		public function Speler()
		{
		}
		
		public function speeltOpPositie(positie:Positie):Boolean
		{
			if (posities != null) 
			{
				for each (var p:Positie in posities)
				{
					if ((p.linie == positie.linie) && (p.zone == positie.zone))
					{
						return true;
					}				
				}
			}
			return false;			
		}

	}
}